package structs_deeply

import "fmt"

type Address struct {
	Street     string
	City       string
	State      string
	PostalCode string
}

type Subscriber struct {
	Name        string
	Rate        float64
	Active      bool
	HomeAddress Address
}

type Employee struct {
	Name        string
	Salary      float64
	HomeAddress Address
}

func TestMaganize() {
	address := Address{Street: "123 Oak St", City: "Omaha", State: "NE", PostalCode: "68111"}
	subscriber := Subscriber{Name: "Aman Singh"}
	subscriber.HomeAddress = address
	fmt.Println(subscriber.HomeAddress)
	fmt.Println(subscriber.HomeAddress.State)
}
